<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class AdminController extends Controller
{
    //后台首页
    public function index()
    {
      $data = DB::table('tcarousel')->get();
      //解析模板
      return view('Admin.Admin.index',['data'=>$data]);
    }
}
